package collection;

import java.util.ArrayList;
import java.util.List;
import java.util.*;
public class CCCC {
    public static void main(String[] args) {
        List<Point> list = new ArrayList<>();
        list.add(new Point(5,8));
        list.add(new Point(15,60));
        list.add(new Point(57,89));
        list.add(new Point(1,4));
        list.add(new Point(10,8));
        list.add(new Point(22,35));
        System.out.println("list的原始数据:"+list);

        Collections.sort(list,new DDD());
        System.out.println(list);
    }
}
